home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0278.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  1.1 KB  |  43 lines

  1. On 14-Mar-98, Jonas Thorell wrote:
  2.  
  3. [Else If - structure]
  4. >Didn't Europress claim that Pro was a 100% compatible to classic, beside the
  5. >extensions? Well, it isn't apparently.
  6.  
  7. Yes it is. You just have to type some extra spaces when editing.
  8.  
  9. The folowing typing _will_ work in APro:
  10.  
  11. ifa=10
  12. ?"a=10"
  13. else   ifa=20
  14. ?"a=20"
  15. endif
  16. endif
  17.  
  18. But the following typing will _not_ work in APro:
  19.  
  20. ifa=10
  21. ?"a=10"
  22. elseifa=20
  23. ?"a=20"
  24. endif
  25. endif
  26.  
  27. I know that the result will look just the same in the editor, but in the first
  28. example "else" and "if" are tokenized individually, and in the second example
  29. they are tokenized together (to "else if")
  30.  
  31. -- 
  32.  
  33.          /¯\ __    __ /¯¯¯¯¯\           _         Rune Zedeler
  34. ________/ /// \\__/ \\\  ---/           \¯-_      Peter Rørdams Vej 19
  35. \      / //¯|  \\/  ||¯\ \\¯¯¯¯¯¯¯¯¯¯¯¯¯¯   ¯-_   2800 Lyngby
  36.  )    / //  | \ ` / ||  \ \\ Lemmus of Efreet  -  Denmark
  37. /    / ¯¯¯¯¯\\|\-'/ /¯¯¯¯¯ \\____________   _-¯
  38. ¯¯¯¯¯\------'/||¯¯| \------'/           /_-¯      rzedeler@post10.tele.dk
  39.       ¯¯¯¯¯¯\-'/  \-'/¯¯¯¯¯¯            ¯         Tel: +45-45871730
  40.              ¯¯    ¯¯
  41.  
  42.  
  43.